package com.soso.j.spider.queue.api.impl;

import com.soso.core.queue.Task;
import com.soso.core.queue.api.QueueService;
import com.soso.core.util.log.Logger;

public class QueueServiceImpl implements QueueService{

	@Override
	public void add(Task task) {
		add(task, null, null);
	}

	@Override
	public void add(Task task, byte[] payload) {
		add(task, payload, null);
	}

	@Override
	public void add(Task task, byte[] payload, String contentType) {
		TaskQueue.getInstance().add(task);
	}

	@Override
	public void purge(Task task) {
		Logger.error("purge(Task task) not implemented");		
	}


}
